var t = getApp();

Page({
  data: {

  },
  Click: function (e) {
    let that = this;
    console.log(e)
    var nksinfo = e.currentTarget.dataset.text
    var pages = getCurrentPages();
    var prevPage = pages[pages.length - 2];
    prevPage.setData({
      nksinfo: nksinfo
    })
    wx.navigateBack({
      delta: 1
    });
  },
  onLoad: function (options) {
    var that = this
    var id = options.hosid
    //查询所有科室
    t.util.request({
      'url': 'entry/wxapp/address',
      data: {
        op: 'keshi',
        id: id
      },
      success: function (res) {
        console.log(res)
        that.setData({
          keshi: res.data
        })
      },
      fail: function (err) {
        console.log(err)
      },
    })
    that.setData({
      id: id
    })
  }
});